

class MyTeamListData {
  List<ManageTeam>? manageTeam;
  List<JoinTeam>? joinTeam;

  MyTeamListData({this.manageTeam, this.joinTeam});

  MyTeamListData.fromJson(Map<String, dynamic> json) {
    if(json["manageTeam"] is List) {
      manageTeam = json["manageTeam"] == null ? null : (json["manageTeam"] as List).map((e) => ManageTeam.fromJson(e)).toList();
    }
    if(json["joinTeam"] is List) {
      joinTeam = json["joinTeam"] == null ? null : (json["joinTeam"] as List).map((e) => JoinTeam.fromJson(e)).toList();
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if(manageTeam != null) {
      _data["manageTeam"] = manageTeam?.map((e) => e.toJson()).toList();
    }
    if(joinTeam != null) {
      _data["joinTeam"] = joinTeam?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}

class JoinTeam {
  int? id;
  String? teamName;
  String? teamNo;
  String? logoUrl;
  String? labels;
  String? type;
  String? qrcodeUrl;
  String? verified;
  String? status;

  JoinTeam({this.id, this.teamName, this.teamNo, this.logoUrl, this.labels, this.type, this.qrcodeUrl, this.verified, this.status});

  JoinTeam.fromJson(Map<String, dynamic> json) {
    if(json["id"] is int) {
      id = json["id"];
    }
    if(json["teamName"] is String) {
      teamName = json["teamName"];
    }
    if(json["teamNo"] is String) {
      teamNo = json["teamNo"];
    }
    if(json["logoUrl"] is String) {
      logoUrl = json["logoUrl"];
    }
    if(json["labels"] is String) {
      labels = json["labels"];
    }
    if(json["type"] is String) {
      type = json["type"];
    }
    if(json["qrcodeUrl"] is String) {
      qrcodeUrl = json["qrcodeUrl"];
    }
    if(json["verified"] is String) {
      verified = json["verified"];
    }
    if(json["status"] is String) {
      status = json["status"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["teamName"] = teamName;
    _data["teamNo"] = teamNo;
    _data["logoUrl"] = logoUrl;
    _data["labels"] = labels;
    _data["type"] = type;
    _data["qrcodeUrl"] = qrcodeUrl;
    _data["verified"] = verified;
    _data["status"] = status;
    return _data;
  }
}

class ManageTeam {
  int? id;
  String? teamName;
  String? teamNo;
  String? logoUrl;
  dynamic labels;
  String? type;
  dynamic qrcodeUrl;
  String? verified;
  String? status;
  String? hospName;

  ManageTeam({this.id, this.teamName, this.teamNo, this.logoUrl, this.labels, this.type, this.qrcodeUrl, this.verified, this.status, this.hospName});

  ManageTeam.fromJson(Map<String, dynamic> json) {
    if(json["id"] is int) {
      id = json["id"];
    }
    if(json["teamName"] is String) {
      teamName = json["teamName"];
    }
    if(json["teamNo"] is String) {
      teamNo = json["teamNo"];
    }
    if(json["logoUrl"] is String) {
      logoUrl = json["logoUrl"];
    }
    labels = json["labels"];
    if(json["type"] is String) {
      type = json["type"];
    }
    qrcodeUrl = json["qrcodeUrl"];
    if(json["verified"] is String) {
      verified = json["verified"];
    }
    if(json["status"] is String) {
      status = json["status"];
    }
    if(json["hospName"] is String) {
      hospName = json["hospName"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["teamName"] = teamName;
    _data["teamNo"] = teamNo;
    _data["logoUrl"] = logoUrl;
    _data["labels"] = labels;
    _data["type"] = type;
    _data["qrcodeUrl"] = qrcodeUrl;
    _data["verified"] = verified;
    _data["status"] = status;
    _data["hospName"] = hospName;
    return _data;
  }
}